package com.usian.user.controller;

/**
 * @Author:WGG
 * @Date 2023年01月05日 23:31
 */

import com.usian.user.service.UserService;
import com.usian.yygh.common.result.Result;
import com.usian.yygh.model.acl.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "用户操作接口")
@RestController
@RequestMapping("/admin/user/user")
public class UserController {

    @Autowired
    private UserService userService;


    @ApiOperation(value = "新增用户")
    @PostMapping("/addUser")
    public Result addUser(@RequestBody User user){

      return userService.addUser(user);

    }
}
